package ru.surfstudio.webservicetemplate.task;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import ru.surfstudio.webservicetemplate.parser.Parser;

/** REST request data */
public class GetHttpTask implements Serializable {

	/** REST method name */
	protected String methodName;

	/** Request params */
	protected Map<String, Object> params;
	
	/** Response parser */
	protected Parser<?> parser;

	public GetHttpTask(String methodName) {
		this.methodName = methodName;
		this.params = new HashMap<String, Object>();
	}

	public void setParser(Parser<?> parser) {
		this.parser = parser;
	}

	public Parser<?> getParser() {
		return parser;
	}

	public String getMethodName() {
		return this.methodName;
	}

	public Map<String, Object> getParams() {
		return params;
	}
}